import request from '@/utils/request'

// 查询科研成果主列表
export function listOutput(query) {
  return request({
    url: '/tongyan/output/list',
    method: 'get',
    params: query
  })
}

// 查询科研成果主详细
export function getOutput(achievementId) {
  return request({
    url: '/tongyan/output/' + achievementId,
    method: 'get'
  })
}

// 新增科研成果主
export function addOutput(data) {
  return request({
    url: '/tongyan/output',
    method: 'post',
    data: data
  })
}

// 修改科研成果主
export function updateOutput(data) {
  return request({
    url: '/tongyan/output',
    method: 'put',
    data: data
  })
}

// 删除科研成果主
export function delOutput(achievementId) {
  return request({
    url: '/tongyan/output/' + achievementId,
    method: 'delete'
  })
}
